package zk.tool;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class Threads {
    /**
     * 异步任务线程池
     */
    public static final ThreadPoolExecutor TREE_LOAD_THREAD_POOL = new ThreadPoolExecutor(
            0, 3, 2, TimeUnit.SECONDS, new LinkedBlockingDeque<>(),
            r -> new Thread(r, "tree_view_item_load_thread-" + System.currentTimeMillis())
    );

}
